import java.util.Scanner;

public class TestScanner {
    public static void main(String[] args) {
        String name;
        int age;
        int salary;

        Scanner scanner = new Scanner(System.in);

        //请输入用户名，年龄，薪水
        System.out.println("请输入用户名：");
        name = scanner.nextLine();
        System.out.println("请输入年龄：");
        age = scanner.nextInt();
        System.out.println("请输入薪水：");
        salary = scanner.nextInt();
        System.out.println("用户名:"+name+" 年龄:"+age+" 薪水"+salary);

    }
}
